package org.zebra.message;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author zhanghongbin
 */
@Data
@ConfigurationProperties(prefix = "zebra.message.mail")
public class MailProperties {

    /**
     * SMTP服务器域名
     */
    private String smtp = "";

    /**
     * SMTP服务端口
     */
    private int port;

    /**
     * 是否需要用户名密码验证
     */
    private boolean ssl = true;

    protected boolean auth = true;

    /**
     * 用户名
     */
    private String userName = "";

    /**
     * 密码
     */
    private String password = "";

    /**
     * 发件人地址
     */
    private String fromAddress = "";

    private int retryInterval = 5;

    private int maxRetries = 1;
}
